<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>借阅信息</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="all-classes-container">
    <div class="row ui-helper-clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>借阅列表————显示所有借阅</small>
                </h1>
            </div>
        </div>
        <div class="row">
            <div class="col-md-8 column">
                <div class="col-md-4 column">
                    <a class="btn btn-primary" style="margin-left: 20px"
                       href="${pageContext.request.contextPath}/admin/getAllLender">显示借阅人信息</a>
                </div>
                <form class="form-inline" style="float:right"
                      action="${pageContext.request.contextPath}/admin/searchLender" method="post"
                      style="float: right"
                      autocomplete="off">
                    <input class="form-control" type="text" name="readerName" required autocomplete="off"
                           placeholder="请输入要查询的借阅人"/>
                    <input type="submit" value="查询" class="btn btn-primary"/>
                </form>
            </div>
            <div class="col-md-4 column">
                <%--                <a class="btn btn-primary" href="${pageContext.request.contextPath}/admin/toadminAction">回到主页面</a>--%>
            </div>
        </div>
    </div>
    <div class="row ui-helper-clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>借阅人</th>
                    <th>借阅书籍</th>
                    <th>书籍编号</th>
                    <th>书籍类别</th>
                    <th>书籍作者</th>
                    <th>出版社</th>
                    <th>发布日期</th>
                    <th>借阅日期</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="a" items="${list}">
                    <tr>
                        <td>${a.readerName}</td>
                        <td>${a.bookName}</td>
                        <td>${a.bookIsbn}</td>
                        <td>${a.bookInfo}</td>
                        <td>${a.bookAuthor}</td>
                        <td>${a.bookConcern}</td>
                        <td>${a.bookDate}</td>
                        <td>${a.lend_date}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>
